package com.windfone.service;

import java.util.List;

import com.windfone.model.Ad;
import com.windfone.model.BaseListObject;
import com.windfone.model.Color;
import com.windfone.model.DetailMsg;
import com.windfone.model.Goodsqryorder;
import com.windfone.model.PackageCompose;
import com.windfone.model.Pricehistory;
import com.windfone.model.StaticAbout;

public interface CommonService {
	public int addColor(Color bean);
	public int updateColor(Color bean);
	public int deleColor(int key);
	public Color getColorByKey(int key);
	public List<Color> getColorByProductId(int productId);
	
	public int addPackage(PackageCompose bean);
	public int addPackageGetReturnKey(PackageCompose bean);
	public int updatePackage(PackageCompose bean);
	public int delePackage(int key);
	public PackageCompose getPackageByKey(int key);
	public List<PackageCompose> getPackageByProductId(int productId);	
	
	public int addDetailMsg(DetailMsg bean);
	public int updateDetailMsg(DetailMsg bean);
	public DetailMsg getDetailMsgByKey(int key);
	public DetailMsg getDetailMsgByProductId(int productId);
	public int deleteDetailMsg(int key);
	
	public int addStaticAbout(StaticAbout bean);
	public int updateStaticAbout(StaticAbout bean);
	public int deleStaticAbout(int key);
	public StaticAbout getStaticAboutByKey(int key);
	public StaticAbout getStaticAboutByShortName(String shortName);	
	public List<StaticAbout> getAllStaticAbout();
	public List<StaticAbout> getAllStaticAboutName();
	public List<Ad> getAllAds();
	public Ad getAdById(int adId);
	public int updateAd(Ad bean);
	public List<Ad> getAdsByFlag(String flag);
	public int getDatabaseDaySeq(int key);
	public int setDatabaseDaySeq(int daySeq,int key);
	
	public int addPricehistory(Pricehistory bean);
	public int updatePricehistory(Pricehistory bean);
	public Pricehistory checkPriceExist(Pricehistory bean);
	public List<Pricehistory> qryPriceHistory(String wherecondition);
	public List  listOnePagePricehistory(int[] keygroups);
	public List<BaseListObject> getAllKewgroups( );
	public int delPriceByKey(int priceHisId);

	
	public List<Integer> getAllGoodsqryorderRecorderNumberFront();
	public int inserGoodsqryorder(Goodsqryorder bean);
	public List<Goodsqryorder> getAllKewgroupsByWhere( String  conditionStr);
	public int inserGoodsqryorderByHandle(Goodsqryorder bean);
	public int updateGoodsqryorder(Goodsqryorder bean);
	public int deleGoodsqryorder(Goodsqryorder bean);
	public List  listOnePageGoodsqryorder(int[] keygroups);
	public int getAllGoodsqryorderRecorderNumber(String whereCondition);
	public List<Goodsqryorder> getAllGoodsqryorder(int beginRecord,	String whereCondition);
}
